package org.jgs1904.chanmufeng;

/**
 * 饿汉模式
 *
 * @author: 默苍璃
 * @date: 2024-07-01 09:29
 */
public class HungrySingleton {

    // 类初始化的时候便进行对象实例化
    private static final HungrySingleton hungrySingleton = new HungrySingleton();

    private HungrySingleton() {
    }

    public static HungrySingleton getInstance() {
        return hungrySingleton;
    }

}
